package src.com.itheima.homework;

import com.itheima.homework.Person;

class Student extends Person {
    private double score;

    public Student(String id, String name, int age, String birthday, double score) {
        super(id, name, age, birthday);
        this.score = score;
    }

    public Student() {
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }
}

class Teacher extends  Person{
    private String subject;

    public Teacher(String id, String name, int age, String birthday, String subject) {
        super(id, name, age, birthday);
        this.subject = subject;
    }

    public Teacher() {
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }
}